package samples.strategy_mode;

import samples.strategy_mode.context.SearchStrategyContext;
import samples.strategy_mode.enums.StrategyEnum;
import samples.strategy_mode.strategy.OPCStrategy;

public class StrategyTest {
    public static void main(String[] args) {
//        SearchStrategyContext context = new SearchStrategyContext(StrategyEnum.MYSQL_STRATEGY);
//        context.doSearch();
//        SearchStrategyContext context2 = new SearchStrategyContext(1);
//        context2.doSearch();
//        SearchStrategyContext context3 = new SearchStrategyContext(new OPCStrategy());
//        context3.doSearch();

        int[] input = {0,1,2};
        for (int type : input) {
            SearchStrategyContext context = new SearchStrategyContext(type);
            context.doSearch();
        }
    }
}
